package main

import "fmt"

func main() {
	strs := []string{"a", "b", "c"}
	strTo := make([]string, 10)
	for idx, val := range strTo {
		fmt.Printf("strTo[%d]=%s\n", idx, val)
	}
	// 切片拷贝
	copy(strTo, strs)
	for idx, val := range strTo {
		fmt.Printf("strTo[%d]=%s\n", idx, val)
	}
	// 切片追加
	strTo = append(strTo, "d", "e", "f")
	for idx, val := range strTo {
		fmt.Printf("strTo[%d]=%s\n", idx, val)
	}


}
